/**
 * ContentFlow Shared Library - 工具模块
 * 简化版本，专注于内容分发平台的核心需求
 */

// 环境检测
export {
  detectEnvironment,
  getEnvironmentInfo,
  isBrowser,
  isNode,
  isExtension,
  supportsFeature
} from './environment';
export type { IEnvironmentInfo } from './environment';

// 错误处理
export {
  ContentFlowError,
  StorageError,
  PlatformError,
  APIError,
  AccountError,
  RateLimitError,
  ValidationError,
  NetworkError,
  InitializationError,
  createError,
  handleErrors,
  retry
} from './errors';

// 日志记录
export {
  ILogger,
  ILoggerConfig,
  Logger,
  createLogger,
  defaultLogger
} from './logger';

// 数据验证
export {
  ContentValidator,
  FileValidator,
  URLValidator,
  CommonValidator
} from './validators';
export type { IValidationResult } from './validators';

// 通用工具
export {
  StringUtils,
  AsyncUtils,
  DateUtils,
  FileUtils
} from './common';